/*
	File:		Projectile.h
	Author:		Ben Feldmann
	Purpose:	Class to manage game projectiles
*/

#pragma once

#include "Entity.h"

//enum BulletType {BASIC, ROCKET, EMP};


class Projectile : public Entity 
{
private:
	float moveSpeed;
	float damage;
	int bulletType;

	Entity* owner;

public:
	Projectile();
	virtual ~Projectile() {}

	void Update(float elapsed);

	void Render();

	bool CheckCollision(IEntity* base);

	Entity* GetOwner() const	{return owner;}
	float GetMoveSpeed()const 	{return moveSpeed ;}
	float GetDamage() const		{return damage;}
	int GetBulletType() const	{return bulletType;}

	void SetMoveSpeed(float s)	{moveSpeed = s;}
	void SetDamage(float d)		{damage = d;}
	void SetBulletType(int t)	{bulletType = t;}
	void SetOwner(Entity* o)	{owner = o;}
};
